package com.question

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@SpringBootApplication
class QuestionApp


@RestController
@RequestMapping("test")
class TestController {
    @GetMapping
    fun test() = "this is test"
}


fun main(args: Array<String>) {
    runApplication<QuestionApp>(*args)
}